//microcommand define pin
ctx = ctx.platform("onebot")
signature("", { checkArgCount: true, captureQuote: false, authority: 2 })
option("remove", "-r")
before(({ session, options }) => {
if (!options.help && !session.quote) return session.i18n(".expect-quote")
})
action(async ({ session, options }) => {
await (options.remove ? session.onebot.deleteEssenceMsg(session.quote.messageId) : session.onebot.setEssenceMsg(session.quote.messageId))
session.onebot._get("set_msg_emoji_like", { message_id: session.messageId, emoji_id: 124 }).catch(() => {})
})
locale("zh-CN", { description: "设置群精华消息", options: { remove: "移出精华" }, messages: { "expect-quote": "请引用要设置的消息。" } })